package com.inspinia.base.dao;

import com.inspinia.base.pagination.PageQueryVo;
import com.inspinia.base.pagination.Pager;

/**
 * 父类dao
 *
 * @param <T>
 */
public interface BaseDao<T> {

    T findById(Long id);

    Pager<T> findPage(PageQueryVo pageVo);

    int insert(T bean);

    int update(T bean);

    int save(T bean);

    int delete(Long id);

}
